package com.itjeffrey.autocode.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 实体类
 * @author: admin
 * @date: 2021-06-18 01:11:12
 */
@TableName("schedule_job_log_tb")
public class ScheduleJobLogTbEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务名称
     */
    private String jobName;

    /**
     * 任务实现类
     */
    private String beanName;

    /**
     * 任务执行时间
     */
    private Date executeTime;

    /**
     * 任务组ID
     */
    private String groupId;

    /**
     * 唯一标识
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 任务ID
     */
    private String jobId;

    /**
     * 任务参数
     */
    private String jobParams;

    /**
     * 任务耗时，s
     */
    private BigDecimal jobTime;

    /**
     * 任务类型, FIXTIME-定时，REALTIME-实时
     */
    private String jobType;

    /**
     * 任务执行结果标志，OK-成功，FAIL-失败
     */
    private String resultCode;

    /**
     * 任务执行结果描述
     */
    private String resultMsg;

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public void setBeanName(String beanName){
        this.beanName = beanName;
    }

    public String getBeanName(){
        return this.beanName;
    }

    public void setExecuteTime(Date executeTime){
        this.executeTime = executeTime;
    }

    public Date getExecuteTime(){
        return this.executeTime;
    }

    public void setGroupId(String groupId){
        this.groupId = groupId;
    }

    public String getGroupId(){
        return this.groupId;
    }

    public void setId(Integer id){
        this.id = id;
    }

    public Integer getId(){
        return this.id;
    }

    public void setJobId(String jobId){
        this.jobId = jobId;
    }

    public String getJobId(){
        return this.jobId;
    }

    public void setJobParams(String jobParams){
        this.jobParams = jobParams;
    }

    public String getJobParams(){
        return this.jobParams;
    }

    public void setJobTime(BigDecimal jobTime){
        this.jobTime = jobTime;
    }

    public BigDecimal getJobTime(){
        return this.jobTime;
    }

    public void setJobType(String jobType){
        this.jobType = jobType;
    }

    public String getJobType(){
        return this.jobType;
    }

    public void setResultCode(String resultCode){
        this.resultCode = resultCode;
    }

    public String getResultCode(){
        return this.resultCode;
    }

    public void setResultMsg(String resultMsg){
        this.resultMsg = resultMsg;
    }

    public String getResultMsg(){
        return this.resultMsg;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}